package club.justwill.single.Service;

import club.justwill.single.bean.*;
import club.justwill.single.model.JsonResponse;
import club.justwill.single.model.SecurityToken;
import club.justwill.single.persistence.jpo.OrderItem;
import club.justwill.single.persistence.jpo.Orders;
import club.justwill.single.persistence.jpo.ProjectIntroduce;

import java.util.List;

/**
 * Created by jaylon on 15-12-26.
 */
public interface OrderService {
    public Orders saveOrder(SecurityToken token, JsonResponse obj, OrderBean order);
    public List<OrdersResp> getOrders(SecurityToken token, JsonResponse ob);
    public void payActivity(SecurityToken token, JsonResponse obj,long orderId);
    public List<Orders> searchOrdersByProjectId(SecurityToken token, long projectId, SearchOrder searchOrder, JsonResponse obj);
    public void confirmReceipt(SecurityToken token, JsonResponse obj, ConfirmReceipt confirmReceipt, long orderId);
    public Orders getByOrderId(long orderId) ;
    public void payOrder(SecurityToken token, JsonResponse obj, PayOrder payOrder);
    public void saveLogisticOrder(SecurityToken token, Logististic logistic, JsonResponse obj);

    public List<OrdersResp> getByUidAndPid(SearchProjects searchProjects, Long userId, Long projectId);

    public void deleteOrder(SecurityToken token, JsonResponse obj, long orderId);
    public void autoConfirmReceipt();

    public void sellerSetconfirmReceipt(SecurityToken token, JsonResponse obj, String serialNumber);

    public List<OrdersResp> getNotPaidOrder(JsonResponse obj, SecurityToken token);


}
